﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyAppProjectControl.Model
{
    public class DeviceDbModel : BindableBase
    {
        private int _Index;

        public int Index
        {
            get
            {
                return _Index;
            }
            set
            {
                SetProperty(ref _Index, value);
            }
        }

        private int _id;

        public int id 
        {
            get
            {
                return _id;
            }
            set
            {
                SetProperty(ref _id, value);
            }
        }

        private string _uuid = "";

        public string uuid
        {
            get
            {
                return _uuid;
            }
            set
            {
                SetProperty(ref _uuid, value);
            }
        }

        private string _deviceid = "";

        public string deviceid
        {
            get
            {
                return _deviceid;
            }
            set
            {
                SetProperty(ref _deviceid, value);
            }
        }

        private string _fileuuid = "";

        public string fileuuid
        {
            get
            {
                return _fileuuid;
            }
            set
            {
                SetProperty(ref _fileuuid, value);
            }
        }

        private string _fileName = "";

        public string fileName
        {
            get
            {
                return _fileName;
            }
            set
            {
                SetProperty(ref _fileName, value);
            }
        }


        private string _currentverion = "";

        public string currentverion
        {
            get
            {
                return _currentverion;
            }
            set
            {
                SetProperty(ref _currentverion, value);
            }
        }
        private string _ipaddress = "";
        public string ipaddress
        {
            get
            {
                return _ipaddress;
            }
            set
            {
                SetProperty(ref _ipaddress, value);
            }
        }


        private DateTime? _logintime;

        public DateTime? logintime
        {
            get
            {
                return _logintime;
            }
            set
            {
                SetProperty(ref _logintime, value);
            }
        }

        private DateTime? _logouttime;

        public DateTime? logouttime
        {
            get
            {
                return _logouttime;
            }
            set
            {
                SetProperty(ref _logouttime, value);
            }
        }

        private int _isonline;

        public int isonline
        {
            get
            {
                return _isonline;
            }
            set
            {
                SetProperty(ref _isonline, value);
            }
        }

        private int _cmdtype;

        public int cmdtype
        {
            get
            {
                return _cmdtype;
            }
            set
            {
                SetProperty(ref _cmdtype, value);
            }
        }

        private int _cmdresulttype;

        public int cmdresulttype 
        {
            get
            {
                return _cmdresulttype;
            }
            set
            {
                SetProperty(ref _cmdresulttype, value);
            }
        }

        private int _iscommelogdll;

        public int iscommelogdll
        {
            get
            {
                return _iscommelogdll;
            }
            set
            {
                SetProperty(ref _iscommelogdll, value);
            }
        }

        private DateTime? _uplodlogtime;

        public DateTime? uplodlogtime
        {
            get
            {
                return _uplodlogtime;
            }
            set
            {
                SetProperty(ref _uplodlogtime, value);
            }
        }

        private ObservableCollection<FileDbModel> _FileList;

        public ObservableCollection<FileDbModel> FileList
        {
            get { return _FileList; }
            set { SetProperty(ref _FileList, value); }
        }

        private FileDbModel _SelectFileDbModel;

        public FileDbModel SelectFileDbModel
        {
            get { return _SelectFileDbModel; }
            set { SetProperty(ref _SelectFileDbModel, value); }
        }
    }
}
